<!DOCTYPE html>
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <meta name="description" content=""/>
    <meta name="author" content=""/>
	<meta name="language" content="en" />
	<!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/common/ie.css" media="screen, projection" />
	<![endif]-->
	
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/themes/FuelThemes/fonts/font-awesome/css/font-awesome.min.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/themes/FuelThemes/css/admin2.css" />
	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>
	<body>
		<div id="wrapper">
	        <div id="loadMenu">
        		<div id="top">
        			<nav class="navbar navbar-inverse navbar-fixed-top">
        				<header class="navbar-header pull-left">
        					<a href="<?php echo Yii::app()->request->baseUrl; ?>/admin.php" class="logo-header">
        						<img src="<?php echo Yii::app()->request->baseUrl; ?>/themes/FuelThemes/img/logo.png" alt=""/>
        					</a>
        					<h3 class="header-title">Quản lý trang web</h3>
        				</header>
        				<div class="pull-right login-title-name">
        					<span>
        						<div class="media-heading">
        							<div class="img-txt-hello">
        								<img src="<?php echo Yii::app()->request->baseUrl; ?>/themes/FuelThemes/img/lock.png" alt="" />
        								<span class="txt-hello">Xin chào</span>
        								<a href="<?php echo Yii::app()->createUrl('user/profile') ?>"><?php echo Yii::app()->user->name ?></a>
        							</div>
        							<div class="user-name-login-show">
										<span style="margin-left: 0">|</span>
										<a href="<?php echo Yii::app()->createUrl('user/logout') ?>">Thoát</a>
									</div>
        						</div>
        					</span>
        				</div>
        			</nav>
        			<div id="menu-top">
        				<?php
			                $this->widget('zii.widgets.CMenu', array(
			                	'encodeLabel' => false,
						        'items'=>array(
						        array('label'=>'Trang chủ', 'url'=>array('statis/index'), 'linkOptions'=>array('class'=>'top custom-menutop'),
						        		'active'=>$this->id=='statis'?true:false
						        ),
						        array('label'=>'Sản phẩm <span class="fa arrow"></span>', 'url'=>array('#'), 'linkOptions'=>array('class'=>'top custom-menutop'),
						            'submenuOptions'=>array('class'=>'menu-top-ul-bg-orange'),'items'=>array(
						           	 		array('label'=>'Nhóm sản phẩm', 'url'=>array('/productsgroup/admin'),
						           	 				'itemOptions'=>array('class'=>'menu-top-li-bg-orange')),
						            		array('label'=>'Loại sản phẩm', 'url'=>array('/productstype/admin'),
						           	 				'itemOptions'=>array('class'=>'menu-top-li-bg-orange')),
						            		array('label'=>'Quản lý sản phẩm', 'url'=>array('/products/admin'),
						           	 				'itemOptions'=>array('class'=>'menu-top-li-bg-orange')),
						        		),'active'=>$this->id=='products'?true:false
						        ),
						        array('label'=>'Tin tức', 'url'=>array('#'), 'linkOptions'=>array('class'=>'top custom-menutop'),
						        		'submenuOptions'=>array('class'=>'menu-top-ul-bg-orange'),'items'=>array(
						        				array('label'=>'Quản lý loại tin tức', 'url'=>array('#'),
						        						'itemOptions'=>array('class'=>'menu-top-li-bg-orange')),
						        				array('label'=>'Quản lý tin tức, bài viết', 'url'=>array('/news/admin'),
						        						'itemOptions'=>array('class'=>'menu-top-li-bg-orange')),
						        		),'active'=>$this->id=='news'?true:false
			               		),
						        array('label'=>'Đơn hàng', 'url'=>array('/orders/admin'), 'linkOptions'=>array('class'=>'top custom-menutop'),
						        		'active'=>$this->id=='orders'?true:false
			                	),
						        array('label'=>'Tùy chỉnh giao diện', 'url'=>array('#'), 'linkOptions'=>array('class'=>'top custom-menutop'),
						        		'submenuOptions'=>array('class'=>'menu-top-ul-bg-orange'),'items'=>array(
						        				array('label'=>'Trình chiếu Slider', 'url'=>array('/slider/admin'),
						        						'itemOptions'=>array('class'=>'menu-top-li-bg-orange')),
						        		),'active'=>$this->id=='slider'?true:false
			                		),
						        array('label'=>'Danh sách thành viên', 'url'=>array('/user/admin'), 'linkOptions'=>array('class'=>'top custom-menutop'),
						        		'active'=>$this->id=='admin'?true:false
						        	),
						      ),
						        'htmlOptions'=>array('class'=>'sf-js-enabled tbl-active-area', 'id'=>'admin-menu'),
							));
						?>
        			</div> 
        		</div>
	        </div>
	        <div id="page-wrapper">
	        	<div class="panel panel-default">
	            	<?php echo $content; ?>
	            </div>
	        </div>
	        <!-- /#page-wrapper -->
	    </div>
	    <div id="footer">Design	by <a href="https://www.facebook.com/thai.hien.it" target="_blank"
				title="Công ty Cổ phần SX TM DV Năng Lượng Xanh">Thái Hiển</a><br/>
				<span>Versions 1.0 - Basic template</span>
		</div>
	    <script type="text/javascript">
		$(document).ready(function() {
			$('#menu-toggle').click(function() {
				if ($('#wrapper #menu-top > ul#admin-menu').hasClass('menu-show'))
					$('#wrapper #menu-top > ul#admin-menu').removeClass('menu-show');
				else
					$('#wrapper #menu-top > ul#admin-menu').addClass('menu-show');
			});

			$('#menu-top > ul').superfish({
				hoverClass	 : 'thHover',
				pathClass	 : 'overideThisToUse',
				delay		 : 0,
				animation	 : {height: 'show'},
				speed		 : 'hight',
				autoArrows   : false,
				dropShadows  : false,
				disableHI	 : false, /* set to true to disable hoverIntent detection */
				onInit		 : function(){},
				onBeforeShow : function(){},
				onShow		 : function(){},
				onHide		 : function(){}
			});

			$('#menu-top > ul').css('display', 'block');
		});
	</script>
	    <!-- /#wrapper -->
	    <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/themes/FuelThemes/js/superfish.js"></script>
	</body>
</html>